home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ für Kids
/
C++ for kids.iso
/
SETUP
/
US
/
CBUILDER
/
DATA.Z
/
SYSUTILS.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-13
|
53KB
|
1,048 lines
//----------------------------------------------------------------------------
// SysUtils.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: SysUtils.pas
//----------------------------------------------------------------------------
#ifndef SysUtilsHPP
#define SysUtilsHPP
//----------------------------------------------------------------------------
#include <Windows.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Sysutils
{
//-- type declarations -------------------------------------------------------
#pragma pack(push, 1)
struct WordRec
{
Byte Lo;
Byte Hi;
} ;
#pragma pack(pop)
#pragma pack(push, 1)
struct LongRec
{
Word Lo;
Word Hi;
} ;
#pragma pack(pop)
struct TMethod
{
void *Code;
void *Data;
} ;
typedef Byte TByteArray[32768];
typedef TByteArray *PByteArray;
typedef Word TWordArray[16384];
typedef TWordArray *PWordArray;
typedef void __fastcall (*TProcedure)(void);
typedef System::AnsiString TFileName;
struct TSearchRec
{
int Time;
int Size;
int Attr;
System::AnsiString Name;
int ExcludeAttr;
int FindHandle;
WIN32_FIND_DATAA FindData;
} ;
struct TFileRec
{
int Handle;
int Mode;
Cardinal RecSize;
Byte Private[28];
Byte UserData[32];
char Name[260];
} ;
typedef char TTextBuf[128];
typedef TTextBuf *PTextBuf;
struct TTextRec
{
int Handle;
int Mode;
Cardinal BufSize;
Cardinal BufPos;
Cardinal BufEnd;
char *BufPtr;
void *OpenFunc;
void *InOutFunc;
void *FlushFunc;
void *CloseFunc;
Byte UserData[32];
char Name[260];
char Buffer[128];
} ;
enum TFloatValue { fvExtended, fvCurrency };
enum TFloatFormat { ffGeneral, ffExponent, ffFixed, ffNumber, ffCurrency };
#pragma pack(push, 1)
struct TFloatRec
{
short Exponent;
bool Negative;
char Digits[21];
} ;
#pragma pack(pop)
struct TTimeStamp
{
int Time;
int Date;
} ;
enum TMbcsByteType { mbSingleByte, mbLeadByte, mbTrailByte };
#pragma pack(push, 1)
struct TSysLocale
{
int DefaultLCID;
Word PriLangID;
Word SubLangID;
bool FarEast;
} ;
#pragma pack(pop)
class __declspec(delphiclass) Exception;
class __declspec(pascalimplementation) Exception : public System::TObject
{
typedef System::TObject inherited;
private:
System::AnsiString FMessage;
int FHelpContext;
public:
__fastcall Exception(const System::AnsiString Msg);
__fastcall Exception(const System::AnsiString Msg, const System::TVarRec * Args, const int Args_Size
);
__fastcall Exception(int Ident);
__fastcall Exception(int Ident, const System::TVarRec * Args, const int Args_Size);
__fastcall Exception(const System::AnsiString Msg, int AHelpContext);
__fastcall Exception(const System::AnsiString Msg, const System::TVarRec * Args, const int Args_Size
, int AHelpContext);
__fastcall Exception(int Ident, int AHelpContext);
__fastcall Exception(int Ident, const System::TVarRec * Args, const int Args_Size, int AHelpContext
);
__property int HelpContext = {read=FHelpContext, write=FHelpContext, nodefault};
__property System::AnsiString Message = {read=FMessage, write=FMessage, nodefault};
public:
/* TObject.Destroy */ __fastcall virtual ~Exception(void) { }
};
typedef System::TMetaClass*ExceptClass;
class __declspec(delphiclass) EAbort;
class __declspec(pascalimplementation) EAbort : public Exception
{
typedef Exception inherited;
public:
/* Exception.Create */ __fastcall EAbort(const System::AnsiString Msg) : Sysutils::Exception(Msg) { }
/* Exception.CreateFmt */ __fastcall EAbort(const System::AnsiString Msg, const System::TVarRec * Args
, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
/* Exception.CreateRes */ __fastcall EAbort(int Ident) : Sysutils::Exception(Ident) { }
/* Exception.CreateResFmt */ __fastcall EAbort(int Ident, const System::TVarRec * Args, const int Args_Size
) : Sysutils::Exception(Ident, Args, Args_Size) { }
/* Exception.CreateHelp */ __fastcall EAbort(const System::AnsiString Msg, int AHelpContext) : Sysutils::
Exception(Msg, AHelpContext) { }
/* Exception.CreateFmtHelp */ __fastcall EAbort(const System::AnsiString Msg, const System::TVarRec
* Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext
) { }
/* Exception.CreateResHelp */ __fastcall EAbort(int Ident, int AHelpContext) : Sysutils::Exception(
Ident, AHelpContext) { }
/* Exception.CreateResFmtHelp */ __fastcall EAbort(int Ident, const System::TVarRec * Args, const int
Args_Size, int AHelpContext) : Sysutils::Exception(Ident, Args, Args_Size, AHelpContext) { }
public:
/* TObject.Destroy */ __fastcall virtual ~EAbort(void) { }
};
class __declspec(delphiclass) EOutOfMemory;
class __declspec(pascalimplementation) EOutOfMemory : public Exception
{
typedef Exception inherited;
public:
__fastcall virtual ~EOutOfMemory(void);
virtual void __fastcall FreeInstance(void);
public:
/* Exception.Create */ __fastcall EOutOfMemory(const System::AnsiString Msg) : Sysutils::Exception(
Msg) { }
/* Exception.CreateFmt */ __fastcall EOutOfMemory(const System::AnsiString Msg, const System::TVarRec
* Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
/* Exception.CreateRes */ __fastcall EOutOfMemory(int Ident) : Sysutils::Exception(Ident) { }
/* Exception.CreateResFmt */ __fastcall EOutOfMemory(int Ident, const System::TVarRec * Args, const
int Args_Size) : Sysutils::Exception(Ident, Args, Args_Size) { }
/* Exception.CreateHelp */ __fastcall EOutOfMemory(const System::AnsiString Msg, int AHelpContext) :
Sysutils::Exception(Msg, AHelpContext) { }
/* Exception.CreateFmtHelp */ __fastcall EOutOfMemory(const System::AnsiString Msg, const System::TVarRec
* Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext
) { }
/* Exception.CreateResHelp */ __fastcall EOutOfMemory(int Ident, int AHelpContext) : Sysutils::Exception(
Ident, AHelpContext) { }
/* Exception.CreateResFmtHelp */ __fastcall EOutOfMemory(int Ident, const System::TVarRec * Args, const
int Args_Size, int AHelpContext) : Sysutils::Exception(Ident, Args, Args_Size, AHelpContext) { }
};
class __declspec(delphiclass) EInOutError;
class __declspec(pascalimplementation) EInOutError : public Exception
{
typedef Exception inherited;
public:
int ErrorCode;
public:
/* Exception.Create */ __fastcall EInOutError(const System::AnsiString Msg) : Sysutils::Exception(Msg
) { }
/* Exception.CreateFmt */ __fastcall EInOutError(const System::AnsiString Msg, const System::TVarRec
* Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
/* Exception.CreateRes */ __fastcall EInOutError(int Ident) : Sysutils::Exception(Ident) { }
/* Exception.CreateResFmt */ __fastcall EInOutError(int Ident, const System::TVarRec * Args, const
int Args_Size) : Sysutils::Exception(Ident, Args, Args_Size) { }
/* Exception.CreateHelp */ __fastcall EInOutError(const System::AnsiString Msg, int AHelpContext) :
Sysutils::Exception(Msg, AHelpContext) { }
/* Exception.CreateFmtHelp */ __fastcall EInOutError(const System::AnsiString Msg, const System::TVarRec
* Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext
) { }
/* Exception.CreateResHelp */ __fastcall EInOutError(int Ident, int AHelpContext) : Sysutils::Exception(
Ident, AHelpContext) { }
/* Exception.CreateResFmtHelp */ __fastcall EInOutError(int Ident, const System::TVarRec * Args, const
int Args_Size, int AHelpContext) : Sysutils::Exception(Ident, Args, Args_Size, AHelpContext) { }
public:
/* TObject.Destroy */ __fastcall virtual ~EInOutError(void) { }
};
class __declspec(delphiclass) EIntError;
class __declspec(pascalimplementation) EIntError : public Exception
{
typedef Exception inherited;
public:
/* Exception.Create */ __fastcall EIntError(const System::AnsiString Msg) : Sysutils::Exception(Msg
) { }
/* Exception.Cr